package week2;




public class ArrayUtil {

    private ArrayUtil(){

    }

    public static int max(int[] arr1){
        int max = 0;
        for(int i = 1; i < arr1.length; i++){
             max = arr1[i - 1] > arr1[i] ? arr1[i - 1] : arr1[i];
            arr1[i] = max;
        }
        return max;
    }

    public static void fill(int[] arr1,int ad,int num1){

    }
}
